package cn.edu.scnu.semart.cart.feign;
import cn.edu.scnu.semart.model.goods.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "service-goods", path = "/goods")
public interface GoodsFeignClient {

    @PostMapping("/batch")
    List<Goods> getBatchByIds(@RequestBody List<Integer> ids);

}
